package com.che.software.testato.domain.entity.search;

import java.io.Serializable;
import java.util.Date;

/**
 * Class representing a software user search.
 * 
 * @author Clement HELIOU (clement.heliou@che-software.com).
 * @copyright Che Software.
 * @license GNU General Public License.
 * @see Serializable
 * @since July, 2011.
 * 
 *        This file is part of Testato.
 * 
 *        Testato is free software: you can redistribute it and/or modify it
 *        under the terms of the GNU General Public License as published by the
 *        Free Software Foundation, either version 3 of the License, or (at your
 *        option) any later version.
 * 
 *        Testato is distributed in the hope that it will be useful, but WITHOUT
 *        ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *        FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 *        for more details.
 * 
 *        You should have received a copy of the GNU General Public License
 *        along with Testato. If not, see <http://www.gnu.org/licenses/>.
 * 
 *        Testato's logo is a creation of Arrioch
 *        (http://arrioch.deviantart.com/) and it's distributed under the terms
 *        of the Creative Commons License.
 */
public class UserSearch implements Serializable {

	/**
	 * Constants.
	 */
	private static final long serialVersionUID = 7171395422282133831L;

	/**
	 * Members.
	 */
	private Date creationDate;
	private int userId;
	private String job, lastName, login, name, password;

	/**
	 * Default builder.
	 */
	public UserSearch() {
		super();
	}

	/**
	 * Builder from an id.
	 * 
	 * @param userId the user id to set.
	 */
	public UserSearch(int userId) {
		super();
		this.userId = userId;
	}

	/**
	 * Builder from a login.
	 * 
	 * @param login the login value to set.
	 */
	public UserSearch(String login) {
		super();
		this.login = login;
	}

	/**
	 * Getter for the private field value creationDate.
	 * 
	 * @return the creationDate field value.
	 */
	public Date getCreationDate() {
		return creationDate;
	}

	/**
	 * Setting a value to the creationDate field.
	 * 
	 * @param creationDate the value to set.
	 */
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	/**
	 * Getter for the private field value userId.
	 * 
	 * @return the userId field value.
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * Setting a value to the userId field.
	 * 
	 * @param userId the value to set.
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * Getter for the private field value job.
	 * 
	 * @return the job field value.
	 */
	public String getJob() {
		return job;
	}

	/**
	 * Setting a value to the job field.
	 * 
	 * @param job the value to set.
	 */
	public void setJob(String job) {
		this.job = job;
	}

	/**
	 * Getter for the private field value lastName.
	 * 
	 * @return the lastName field value.
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * Setting a value to the lastName field.
	 * 
	 * @param lastName the value to set.
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/**
	 * Getter for the private field value login.
	 * 
	 * @return the login field value.
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * Setting a value to the login field.
	 * 
	 * @param login the value to set.
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * Getter for the private field value name.
	 * 
	 * @return the name field value.
	 */
	public String getName() {
		return name;
	}

	/**
	 * Setting a value to the name field.
	 * 
	 * @param name the value to set.
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Getter for the private field value password.
	 * 
	 * @return the password field value.
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Setting a value to the password field.
	 * 
	 * @param password the value to set.
	 */
	public void setPassword(String password) {
		this.password = password;
	}
}